﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SklepISI.Core.Models;

namespace SklepISI.Core.Interfaces
{
    public interface IProductRepository
    {
        ProductModel AddProduct(ProductModel product);
        bool RemoveProduct(int productId);
        bool UpdateProduct(ProductModel product);
        ProductModel GetProduct(int productId);
        IList<ProductModel> GetProducts();
        IList<ProductModel> GetProducts(int categoryId);

        CategoryModel AddCategory(CategoryModel category);
        bool UpdateCategory(CategoryModel category);
        IList<CategoryModel> GetCategories();
    }
}
